﻿using System;
using System.ServiceModel;

namespace Bacterium
{
    [ServiceContract]
    public interface IBacterium
    {
        /// <summary>
        /// When neutral, allows other bacteria to capture it to their teams.
        /// </summary>
        /// <param name="newTeamID">ID of the team that this bacterium joins.</param>
        [OperationContract(IsOneWay = true)]
        void ChangeTeam(int newTeamID);

        /// <summary>
        /// Allows allied bacteria to heal it.
        /// </summary>
        [OperationContract(IsOneWay = true)]
        void RestoreDamage();

        /// <summary>
        /// Allows enemy bacteria to attack it.
        /// </summary>
        [OperationContract(IsOneWay = true)]
        void TakeDamage();
    }
}
